package cn.eli.vue.service.postAnswer;


import cn.eli.vue.entity.PostAnswer;
import cn.eli.vue.entity.PostAsk;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PostAnswerService {
    /*发布回答*/
    int AnswerPost(int user_id,int postAsk_id,String postAnswer_title,String postAnswer_discribe,String postAnswer_img);
    /*收藏回答*/
    int AnswerSubscribeInsert(int user_id, int postAnswer_id) ;
    /*收藏回答*/
    int AnswerSubscribeUpdate(int user_id, int postAnswer_id) ;
    /*取消点赞回答*/
    int AnswerSubscribeCancelDelete(int user_id,int postAnswer_id);
    /*取消点赞回答*/
    int AnswerSubscribeCancelUpdate(int user_id,int postAnswer_id);
    /*点赞回答*/
    int AnswerLikeInsert(int user_id,int postAnswer_id);
    /*点赞回答*/
    int AnswerLikeUpdate(int user_id,int postAnswer_id);
    /*取消点赞回答*/
    int AnswerLikeCancelDelete(int user_id,int postAnswer_id);
    /*取消点赞回答*/
    int AnswerLikeCancelUpdate(int user_id,int postAnswer_id);
    /*评论回答*/
    int AnswerCommentInsert(int user_id,int postAnswer_id,String commentAnswer_discribe);
    /*评论回答*/
    int AnswerCommentUpdate(int user_id,int postAnswer_id,String commentAnswer_discribe);
    /*修改回答*/
    int AnswerModify( int user_id, int postAnswer_id, String postAnswer_title,  String postAnswer_discribe,String postAnswer_img);
    /*获取所有问题*/
    List<PostAnswer> AllAnswer();
    /*获取某个问题下的所有回答*/
    List<PostAnswer> AllAnswerInAsk(int postAsk_id);
    /*获取某个角色的所有回答*/
    List<PostAnswer> AllAnswerInUser(int user_id);
}
